package com.tarena.lbs.marketing.web;

import com.tarena.lbs.marketing.web.event.input.MarketingInputSource;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;

@SpringBootApplication(
        scanBasePackages = {
                "com.tarena.lbs.marketing.web",
                "com.tarena.lbs.common.security"
        }
)
@MapperScan("com.tarena.lbs.marketing.web.mapper")
@EnableDubbo
@EnableBinding(MarketingInputSource.class)
public class MarketingWeb {
        public static void main(String[] args) {
                SpringApplication.run(MarketingWeb.class,args);
        }
}
